<?php
class MessageBox {
	
	
	public static function successMessage($messageTitle,$messageContent,$directUrl){
		$directUrl = "http://".$_SERVER['HTTP_HOST']."/".$directUrl;
		$url = "standard/successMessage.php";
		$view = new View();
		$fc = FontController::getInstance();
		$view->messageTitle = $messageTitle;
		$view->messageContent = $messageContent;
		$view->directUrl = $directUrl;
		$body = $view->render($url);
		$fc->setBody($body);
		}
	
	public static function errorMessage($messageTitle,$messageContent,$directUrl){
		$directUrl = "http://".$_SERVER['HTTP_HOST']."/".$directUrl;
		$url = "standard/errorMessage.php";
		$view = new View();
		$view->messageTitle = $messageTitle;
		$view->messageContent = $messageContent;
		$view->directUrl = $directUrl;
		$body = $view->render($url);
		echo $body;
		exit();
	}
	
	public static function waringMessage($messageTitle,$messageContent,$directUrl){
		$directUrl = "http://".$_SERVER['HTTP_HOST']."/".$directUrl;
		$url = "standard/waringMessage.php";
		$view = new View();
		$fc = FontController::getInstance();
		$view->messageTitle = $messageTitle;
		$view->messageContent = $messageContent;
		$view->directUrl = $directUrl;
		$body = $view->render($url);
		$fc->setBody($body);
	}
	
	public static function confirmMessage($messageTitle,$messageContent,$yesUrl,$noUrl){
		
	}
	
	public static function tipMessage($messageTitle,$messageContent){
		
	}
}